{% extends "exams/base_exams.html" %}

{% block links %}
<link href="../../../media/style.css" rel="stylesheet" type="text/css" />
{% endblock %}

{% block content %}

{% if takenexam_list %}
    <ul>
    <table style='width:100%'>
    <tr align='left'><th>Student</th><th>Grade</th></tr>
    {% for takenexam in takenexam_list %}

        <tr>
           <td> {{ takenexam.student.username }} </td>
           <td> {{ takenexam.grade|floatformat:2 }} </td>
        </tr>
    {% endfor %}
    </table>
    </ul>
{% else %}
    <p>No results are available.</p>
{% endif %}

<a href="/exams/">Back to exams</a>

{% endblock %}
